-
Notifications
You must be signed in to change notification settings - Fork 38
Add analyze endpoint to rust driver #794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add analyze endpoint to rust driver #794
Conversation
45b06c2 to
3705f44
Compare
0cb6566 to
570fd60
Compare
| #[repr(C)] | ||
| #[derive(Debug, Clone)] | ||
| pub enum Comparator { | ||
| Equal, | ||
| NotEqual, | ||
| LessThan, | ||
| LessOrEqual, | ||
| Greater, | ||
| GreaterOrEqual, | ||
| Like, | ||
| Contains, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just keep things simple and use a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah let's do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also TODO: Expose involvedBlocks in ConceptRow Done
5a822d2 to
1cc50b2
Compare
rust/src/common/error.rs
Outdated
| 35: "TLS connections can only be enabled when connecting to HTTPS endpoints, for example using 'https://<ip>:port'. Please modify the address, or disable TLS (WARNING: this will send passwords over plaintext).", | ||
| NonTlsConnectionWithHttps = | ||
| 36: "Connecting to an https endpoint requires enabling TLS in driver options.", | ||
| AnalyzeQueryNoResponse = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AnalyzeNoResponse
flyingsilverfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
my only fear is now the docs API page is gonna get bigger but that feels like a docs representation problem not a source code problem!
| /// as well as the result of types inferred for each variable by type-inference. | ||
| #[derive(Debug, Clone)] | ||
| pub struct AnalyzedQuery { | ||
| pub source: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yas
| } | ||
|
|
||
| // | ||
| // impl TryFromProto<analyze_proto::Fetch> for Fetch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
flyingsilverfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHeck comments but approval stands
a6ea6d9
into
typedb:feature/grpc-driver-analyze
## Usage and product changes Adds support for the analyze endpoint to rust driver. ## Implementation Implement protocol serialization/deserialization and request/response handling.
Usage and product changes
Adds support for the analyze endpoint to rust driver.
Implementation
Implement protocol serialization/deserialization and request/response handling.